package com.i2863.tools.weixinmp.service;


import com.i2863.tools.weixinmp.dao.mapper.SiteAreaMapper;
import com.i2863.tools.weixinmp.dao.mapper.WeixinMapper;
import com.i2863.tools.weixinmp.domain.SiteArea;
import com.i2863.tools.weixinmp.domain.Weixin;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by xuweiwei on 2017/3/10.
 */
@Service("siteAreaService")
public class SiteAreaService {

    private static final Logger logger = LoggerFactory.getLogger(SiteAreaService.class);

    @Resource
    private SiteAreaMapper mapper;


    public List<SiteArea> listSiteArea() {
          return  mapper.listSiteArea();
    }

    public SiteArea getAreaBySiteId(Integer siteId){
        return mapper.getAreaBySiteId(siteId);
    }



}
